import wmi
import base64
import datetime
nowday,nowtime = str(datetime.datetime.now()).split(".")[0].split(" ")
s = wmi.WMI()
for board_id in s.Win32_BaseBoard():
        print(board_id.SerialNumber.strip('.').replace("/",""))
mainboard=[input("请输入机器码:")]
zcm=base64.b64encode(mainboard[0].encode("utf-8")).decode("utf-8")[3:12].upper()
for i in range(5):
    zcm=base64.b64encode(zcm.encode("utf-8")).decode("utf-8")
print("key{"+zcm.replace("=","}"))


